package com.interview.item.javabase;

import com.alibaba.fastjson.JSONObject;

import java.util.*;
import java.util.concurrent.ConcurrentHashMap;

/**
 * @Author:zxh
 * @Description:
 * @Date: 2020/3/23
 * @Modified By:
 */
public class BaseTest {

    interface one extends two,three {

    }

    interface two{

    }

    interface three{

    }

    public static void main(String[] args) {
        new LinkedHashMap<String,Integer>();
        //new HashMap<String,Integer>();
        new TreeMap<String,Integer>();
        new Hashtable<String,Integer>();

        new ConcurrentHashMap<String,Integer>();


        new HashSet<String>();
        new TreeSet<String>();
        new LinkedHashSet<String>();


        new LinkedList<String>();
        new ArrayList<String>();
        new Vector<String>();

        HashMap<String, JSONObject> hashMap = new HashMap<>();
        //hashMap.put("one",3);
        System.out.println(hashMap.toString());
        int i = 0;
        JSONObject jsonObject = new JSONObject();
        while (true){
            i++;
            jsonObject.put("one",90+i);
            System.out.println("输出：i:"+i);
            System.out.println(jsonObject.toJSONString());
            hashMap.put("one",jsonObject);

        }



    }
}
